package com.api.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cfp
 * @since 2019-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_role_menu")
public class RoleMenu extends Model<RoleMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * oid
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Long oid;

    /**
     * 角色id
     */
    private Long roleid;

    /**
     * 菜单id
     */
    private Long menuid;

    /**
     * 是否可用
     */
    private Boolean status;

    /**
     * 创建人
     */
    private String createuser;

    /**
     * 创建时间
     */
    private LocalDateTime createtime;

    /**
     * 更新时间
     */
    private LocalDateTime updatetime;

    /**
     * 更新人
     */
    private String updateuser;


    @Override
    protected Serializable pkVal() {
        return this.oid;
    }

}
